If time is available from Garmin, add that to waypoint in get_posn suboption.
authorrobertl <robertl>
Mon, 31 Mar 2008 02:01:36 +0000 (02:01 +0000)
committerrobertl <robertl>
Mon, 31 Mar 2008 02:01:36 +0000 (02:01 +0000)
garmin.c

index 7048bd9b067d4fed2e9eff9a8bb2361bd9ee07a5..81a95675bf4c6de67f2b878df414ccf36989188f 100644 (file)
--- a/garmin.c
+++ b/garmin.c
@@ -265,6 +265,8 @@ waypt_read(void)
                wpt->latitude = gps_save_lat;
                wpt->longitude = gps_save_lon;
                wpt->shortname = xstrdup("Position");
+               if (gps_save_time)
+                       wpt->creation_time = gps_save_time;
                waypt_add(wpt);
                return;
        }